﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Century.Web.MVC.Helper
{
    public static class HtmlHelperExtensions
    {
        /// <summary>
        /// Returns analytic Codes by positions
        /// </summary>
        /// <param name="helper"></param>
        /// <param name="position"></param>
        /// <returns></returns>
        public static MvcHtmlString RenderAnalyticScripts(this HtmlHelper helper, CountrySiteScriptPositions position)
        {
            return new MvcHtmlString(new CountrySiteScriptBSO().GetSiteScripts(PersistData.CurrentSite.Path, PersistData.CurrentPage.LocalName, position));
        }
    }
}
